
public class Edge {
	protected double weight;
	protected Vertex head;
	protected Vertex tail;
	
	Edge(){
		
	}
	Edge(Vertex head, Vertex tail, double weight){
		this.head = head;
		this.tail = tail;
		this.weight = weight;
	}

	public Vertex getHead() {
		return head;
	}

	public Vertex getTail() {
		return tail;
	}

	public double getWeight() {
		return weight;
	}
	
	public String toString(){
		return head.getName() + " " + tail.getName() + " " + weight;
	}
	
}
